Mac OS Sound

| Previous | Chapter Contents | Chapter Top | Next |

New Codecs to Import & Export Samples

Two new codecs have been added to import and export samples. These are in 32 bit and 64 bit floating point formats, and named kFloat32Format and kFloat64Format, respectively. This allows more accurate conversion to other sample sizes or the application of effects--for example, 3D sound localization. These two floating point codecs also support a new selector siSlopeAndIntercept which points to a SoundSlopeAndInterceptRecord structure which can control the conversion process of floating point samples into integer samples. This structure is included in the Sound.h interface file and shown as follows:

struct SoundSlopeAndInterceptRecord {
    Float64 slope;
    Float64 intercept;
    Float64 minClip;
    Float64 maxClip;
};

© 1998 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |